<?php
/**
 * Created by PhpStorm.
 * User: lenovo
 * Date: 2018/9/30
 * Time: 11:41
 */
include "config.php";

$sql="SELECT *FROM userinfo WHERE u_name='".$_REQUEST["uname"]."'";
$res=$link->query($sql);

print_r(json_encode($res->fetch_assoc()));
$link->close();
